package com.gin.monitor.agg.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 某个时间范围内卡口的平均车速和通过的车辆数量
 * @author gin
 * @date 2021/4/30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AvgSpeedInfo implements Comparable<AvgSpeedInfo> {

    public Long start;
    public Long end;
    public String monitorId;
    public Double avgSpeed;
    public Integer carCount;

    @Override
    public int compareTo(AvgSpeedInfo o) {
        return this.carCount - o.carCount;
    }

}
